package pro.lepers.portfolio.event {
	import pro.lepers.portfolio.view.contents.AbstractContent;

	import flash.events.Event;

	/**
	 * @author plepers
	 */
	public class ContentEvent extends Event {
		
		public static const CLOSED : String = "_ce_closed";

		
		public function get content () : AbstractContent {
			return _content;
		}

		public function ContentEvent (type : String, content : AbstractContent, cancelable : Boolean = false) {
			_content = content;
			super( type, false, cancelable );
		}

		
		override public function clone () : Event {
			return new ContentEvent( type, _content, cancelable );
		}

		private var _content : AbstractContent;
	}
}
